<?php

//UMA new
/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Models\Zip;
use Faker\Generator as Faker;
use Illuminate\Support\Str;

$factory->define(Zip::class, function (Faker $faker) {
    return [
        'zip_cd' => random_int(10000, 99999),
        'zip5' => random_int(1000, 9999),
        'zip7' => random_int(100000, 999999),
        'pref_kana' => Str::random(10),
        'city_kana' => Str::random(8),
        'town_kana' => Str::random(8),
        'pref' => Str::random(8),
        'city' => Str::random(8),
        'town' => Str::random(8),
        'flag1' => 0,
        'flag2' => 0,
        'flag3' => 0,
        'flag4' => 0,
        'has_update' => 0,
        'reason' => 0,
    ];
});
